package controller

import (
	"github.com/gin-gonic/gin"
	"go-ddd/application"
	"go-ddd/ui/dto"
	"strconv"
)

var (
	activityApp application.Activity
)

type Activity struct{}

func (a *Activity) Get(c *gin.Context) (dto.Data, error) {
	id, _ := strconv.Atoi(c.Param("id"))

	return activityApp.Get(id)
}
